home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9836 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1009 b   |  29 lines

  1. Path: holly.ACNS.ColoState.EDU!not-for-mail
  2. From: corbyh@holly.ACNS.ColoState.EDU (Corby S. Hudnall)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Running a .exe or bat using C language.
  5. Date: 4 Mar 1996 11:39:35 -0700
  6. Organization: Colorado State University, Fort Collins, CO  80523
  7. Message-ID: <4hfdd7$5kts@holly.ACNS.ColoState.EDU>
  8. References: <313BA0C2.989@soho.ios.com>
  9. NNTP-Posting-Host: holly.acns.colostate.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Benjamin Chi (benjachi@soho.ios.com) wrote:
  13. : Does anyone know how I can write a program that will run another
  14. : excutable file? such as .exe .bat .com using C/C++/java?
  15.  
  16. Look into the system(), spawn(), and exec() family of functions.
  17.  
  18. // ------------ BEGIN SIGNATURE ---------------
  19. #include <iostream.h>
  20. void main()
  21. {
  22.   cout<<"\aName:\tCorby S. Hudnall\n";
  23.   cout<<"School:\tColorado State University\n";
  24.   cout<<"EMail\tcorbyh@holly.colostate.edu\n";
  25.   cout<<"URL\thttp://holly.colostate.edu/~corbyh/\n";
  26. }
  27. // ------------- END SIGNATURE ----------------
  28.  
  29.